home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Apps / ScreenSavers / BackSpaceViews / SchoolView.BackModule / README < prev    next >
Text File  |  1995-06-12  |  1KB  |  35 lines

  1. README        SchoolView v1.0, 17 April, 1994
  2.  
  3. This is SchoolView, a BackSpace module that implements the flocking
  4. algorithm discussed in SIGGRAPH a few years ago (1989, 1990?) and used
  5. in Jurassic Park for the herd-o-dinosaurs scene.
  6.  
  7. The code is public domain, although you'd probably need the article to
  8. follow the algorithm.  Basically, a fish's acceleration is a weighted
  9. and prioritized sum of four different accelerations.  They are (in
  10. order of priority):
  11.  
  12.         1. Collision avoidance
  13.         2. Flock centering
  14.         3. Flockmate velocity matching
  15.         4. Target seeking
  16.  
  17. The fish are implemented as a font for speed.
  18.  
  19. Hope you enjoy it.  Comments and suggestions to:
  20.  
  21. David Lambert
  22. dcl@homer.uu.panix.com (NeXTMail ok)
  23.  
  24. NOTE:
  25.  
  26. Also included is a slightly modified Thinker.m for Backspace itself.
  27. You may have noticed that Backspace no longer lets you do something
  28. with the mouse, no matter what "- ignoreMouseMovement" returns.  Well,
  29. it does, in case, you haven't noticed, and this Thinker.m fixes it, if
  30. you use it instead.  (The problem had to do with the way Backspace tried
  31. to see if it should quit displaying the view - looking for the "autoDimmed"
  32. state.)  I needed this for the "Follow Mouse" switch in SchoolView.
  33.  
  34.  
  35.